package cn.wei.example.provider;

import cn.wei.example.common.service.UserService;
import cn.wei.youvierpc.RpcApplication;
import cn.wei.youvierpc.registry.LocalRegistry;
import cn.wei.youvierpc.server.VertxHttpServer;

public class EasyProviderExample {
    public static void main(String[] args) {
        //初始化Rpc框架
        RpcApplication.init();
        //注册服务
        LocalRegistry.register(UserService.class.getName(), UserServiceImpl.class);

        //启动 web 服务
        VertxHttpServer vertxHttpServer = new VertxHttpServer();
        vertxHttpServer.doStart(8085);

    }
}
